import { Column, Entity } from "typeorm";

@Entity("private_device", { schema: "charge" })
export class PrivateDevice {
  @Column("int", { primary: true, name: "id", unsigned: true })
  id: number;

  @Column("int", { name: "owner", unsigned: true, default: () => "'0'" })
  owner: number;

  @Column("json", { name: "owners", nullable: true })
  owners: number[] | null;
}
